package com.imau.controller;

import javax.servlet.GenericServlet;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;

@WebServlet("/test")
public class ServletTest extends GenericServlet {

    //重写处里请求
    @Override
    public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException {

        //请求 响应 http

        HttpServletRequest httpServletRequest = (HttpServletRequest)servletRequest;
        System.out.println("service....");
    }
}
